//<!-- License -->
package eu.datafusion.log4soa.model.referencedata.security;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.Table;

import eu.datafusion.log4soa.model.referencedata.NamedEntity;

import javax.persistence.Cacheable;


/**
 * Represents security role
 * @author Ivo.Mitov@datafusion.eu
 *
 */
@Entity
@Table(name = "ROLES")
@Cacheable
public class Role  extends NamedEntity implements Serializable{

	private static final long serialVersionUID = -4458989755383485174L;

	/**
	 * @param name required immutable property <tt>name</tt> must be unique per Role class instances
	 * @param description optional property
	 */
	public Role(String name, String description) {
		super(name,description);
	}
	
	/**
	 * @param name required immutable property <tt>name</tt> must be unique per Role class instances
	 */
	public Role(String name) {
		this(name,null);
	}
	
	/**
	 * default constructor required by JPA
	 */
	protected Role() {

	}

}
